package com.jrx.anytxn.transaction.dto.payment;

import com.jrx.anytxn.transaction.dto.common.CommonReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 提前还款试算请求
 *
 * @author jing.xy
 * date  2019/10/23
 **/
@ApiModel(value = "提前还款试算请求实体", description = "提前还款试算请求实体")
public class PrePayTrialReq extends CommonReq {
    /**
     * 外部合同号
     */
    @ApiModelProperty(value = "外部合同号")
    @Size(max=60, message = "外部合同号不能超过60位")
    private String contractNumber;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @Size(max=32, message = "订单号不能超过32位")
    private String loanId;

    /**
     * 还款本金
     */
    @ApiModelProperty(value = "还款本金")
    @DecimalMin(value="0",message = "还款本金必需大于0")
    private BigDecimal principalAmount;

    /**
     * 还款本金
     */
    @ApiModelProperty(value = "还款总金额")
    @DecimalMin(value="0",message = "还款本金必需大于0")
    private BigDecimal paymentAmount;

    public String getContractNumber() {
        return contractNumber;
    }

    public void setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
    }

    public String getLoanId() {
        return loanId;
    }

    public void setLoanId(String loanId) {
        this.loanId = loanId;
    }

    public BigDecimal getPrincipalAmount() {
        return principalAmount;
    }

    public void setPrincipalAmount(BigDecimal principalAmount) {
        this.principalAmount = principalAmount;
    }

    public BigDecimal getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(BigDecimal paymentAmount) {
        this.paymentAmount = paymentAmount;
    }
}
